<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:ace="http://www.icefaces.org/icefaces/components"
   xmlns:icecore="http://www.icefaces.org/icefaces/core">
   <h:body> 
      <ui:composition template="/WEB-INF/templates/adminuser/template.xhtml">
         <ui:define name="content">
              <h:form id="form-devices">
              	
                  <ace:dataTable id="dev-list"
                                  value="#{deviceTypeListBean.deviceTypes}"
                                  var="devType">
                      <ace:column id="name-col" headerText="#{msgs['listType.typename']}">
                           <h:outputText id="name-row" value="#{devType.name}"/>
                      </ace:column>
                      <ace:column id="buttons-col">
                           <h:commandButton  id="editBttn" value="#{msgs['listType.edit']}" action="devicetypedata"
	                                         actionListener="#{devType.edit}" disabled="#{sysOffOn.active}"/>
	                       <h:commandButton  id="deleteBttn" value="#{msgs['listType.delete']}" 
	                                         actionListener="#{devType.delete}" disabled="#{sysOffOn.active}"/>
                      </ace:column>  
                  </ace:dataTable>    
                  <h:commandButton  id="newBttn" value="#{msgs['listType.new']}" action="devicetypedata"
	                                         actionListener="#{deviceTypeListBean.newDevice}" disabled="#{sysOffOn.active}"/>            
              </h:form>
         </ui:define>			
      </ui:composition> 
   </h:body> 
</html>	